package com.hntky.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hntky.entity.Nurse;
import com.hntky.entity.Sickroom;
import com.hntky.service.NurseService;
import com.hntky.mapper.NurseMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author admin
* @description 针对表【t_nurse】的数据库操作Service实现
* @createDate 2023-05-15 17:34:42
*/
@Service
public class NurseServiceImpl extends ServiceImpl<NurseMapper, Nurse>
    implements NurseService{

    @Resource
    private NurseMapper mapper;

    @Override
    public Page<Nurse> findPage(Page<Nurse> page, String nname) {
        return mapper.findPage(page, nname);
    }

    @Override
    public Nurse selectRooms(Integer nid) {
        return mapper.selectRooms(nid);
    }
}




